﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/Manager.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Manager_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="Server">
    Dashboard | Aptitude Online Test
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageHeader" runat="Server">
    <link type="text/css" rel="stylesheet" href="../Style/dataTables.css" />   
    <style type="text/css">
        .onecolumn .content
        {
            padding: 20px;
        }
        textarea
        {
            min-height: 50px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="BodyContent" runat="Server">
    <div class="header">
        <span><span class="ico  gray spreadsheet"></span>Manager Candidate </span>
    </div>
    <!-- End header -->
    <div class=" clear">
    </div>
    <div class="content">
        <p>
            <a id="addNew" title="Add">Add New Candidate</a>
        </p>

        <p>
            <a id="Addmanager" title="Add">Add New Manager</a>
        </p>

        <p>
            <a id="ManagerInfomation" title="View">Manager Infomation</a>
        </p>
        
         <p>
            <a id="Inventory" title="View">Inventory Management</a>
        </p>

        <asp:Label ID="lblmes" runat="server" Text=""></asp:Label>
        
        <script language="javascript" type="text/javascript">
            $(document).ready(function () {

                //check show message
                if ($("#ctl00_BodyContent_lblmes").text() != "") {
                    setTimeout('showSuccess( $("#ctl00_BodyContent_lblmes").text())', 100);
                }
                //add candidate
                $("#addNew").click(function () {
                    window.location.href = 'AddCandidate.aspx';
                });


                //add manager
                $("#Addmanager").click(function () {
                    window.location.href = 'AddNewManager.aspx';
                });


                //ManagerInfomation
                $("#ManagerInfomation").click(function () {
                    window.location.href = 'ManagerInfomation.aspx';
                });

                //InventoryManager
                $("#Inventory").click(function () {
                    window.location.href = 'inventorymanagement.aspx';
                });

            })

            //load edit candidate page
            function EditCandidate(id) {
                window.location.href = 'EditCandidate.aspx?ID=' + id;
            }

            // highlight the row when clicked
            $(document).ready(function () {
                $("#divGridView table tbody tr").mouseover(function () {
                    $(this).addClass("highlightRow");
                }).mouseout(function () { $(this).removeClass('highlightRow'); })
            });

            // highlight row by clicking it
            $(document).ready(function () {
                $("#divGridView table tbody tr").click(function () {
                    $("#grvCandidate").find("tr.select").removeClass('select');
                    $(this).addClass("select");
                })
            });
        </script>
    </div>
</asp:Content>
